package model;

import mappers.ClubMapper;

public class Club {
    private int tournamentStanding;
    private int division;
    private String clubName;
    private int id;
    private int points;
    private String stadium;
    private String coach;

    public Club(int id, int tournamentStanding, int division, String clubName, int points, String stadium, String coach) {
        this.id = id;
        this.tournamentStanding = tournamentStanding;
        this.division = division;
        this.clubName = clubName;
        this.points = points;
        this.stadium = stadium;
        this.coach = coach;
    }

    public int getTournamentStanding() {
        return tournamentStanding;
    }

    public void setTournamentStanding(int tournamentStanding) {
        this.tournamentStanding = tournamentStanding;
    }

    public int getDivision() {
        return division;
    }

    public void setDivision(int division) {
        this.division = division;
    }

    public String getClubName() {
        return clubName;
    }

    public void setClubName(String clubName) {
        this.clubName = clubName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPoints() {
        return points;
    }

    public void setPoints(int points) {
        this.points = points;
    }

    public String getStadium() {
        return stadium;
    }

    public void setStadium(String stadium) {
        this.stadium = stadium;
    }

    public String getCoach() {
        return coach;
    }

    public void setCoach(String coach) {
        this.coach = coach;
    }
 
    @Override
    public String toString(){
        return clubName;
    }
    
    public void addPoints(int points){
        this.points += points;
        ClubMapper.getInstance().addPoints(points, this);
    }
    
}
